#pragma once

#include <string>
#include <vector>
using namespace std;

inline vector<string> stringSpit( string str, string separate )
{
	vector<string> vec;
	int starIndex = 0;
	int pos = -1;
	pos = str.find_first_of( separate );
	while( pos != -1 )
	{
		string s  = str.substr( starIndex , pos - starIndex );
		vec.push_back( s );
		starIndex = pos + separate.length();
		pos = str.find_first_of( separate, pos + separate.length() );
	}
	return vec;
}


